export type FizzBuzzType = number | string;

// @ts-ignore
// tslint:disable-next-line:variable-name
const fizzBuzzConverter = (number: number): FizzBuzzType => {
    if(number % 15 === 0){
        return "FizzBuzz"
    }
    if(number % 5 === 0){
        return "Buzz"
    }
    if(number % 3 === 0){
        return "Fizz"
    }
    if(number % 3 !== 0 || number % 5 !== 0){
        return number.toString()
    }
    if(number < 1 || number > 100){
        return 'exception'
    }
}

export default fizzBuzzConverter;